package cn.wizzer.framework.filter;

import org.nutz.ioc.loader.annotation.IocBean;
import org.nutz.mvc.ActionContext;
import org.nutz.mvc.View;
import org.nutz.mvc.filter.CrossOriginFilter;
@IocBean
public class CrossOriginTokenFilter extends CrossOriginFilter {
    public CrossOriginTokenFilter() {
        super("*", "GET, POST, PUT, DELETE, OPTIONS, PATCH", "appid,token,equipment,Origin, Content-Type, Accept, X-Requested-With", "true");
    }

    @Override
    public View match(ActionContext ac) {
        return super.match(ac);
    }
}
